package com.itheima.demo02;

import java.util.Arrays;

public class ListUitl<T> {


    private int size;

    Object[] list = new Object[10];

    public void add(T e) {
        list[size] = e;
        size++;
    }

    public String getIndex(int i) {
        return (String) (list[i]);
    }

    @Override
    public String toString() {
        return Arrays.toString(list);
    }
}
